<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%> 
<html>
<head>  
  <script type="text/javascript">
  function doSearch() {	 
	  grid.load({
			proc_name: $('#proc_name').val(),
			fn_name: $('#fn_name').val(),
			title: $('#title').val(),
			log_level: $('#log_level').val(),
			content: $('#content').val(),
			rec_upd_usr_id: $('#rec_upd_usr_id').val()
		});
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#procLogTableId").jpgrid({
			url: "getProcLogListJson.do",
			baseColumns : false,
			columns: [
				{title: "过程名称", field: "PROC_NAME",width: 270},				
				{title: "函数名称", field: "FN_NAME",width: 140},
				{title: "日志标题", field: "TITLE",width: 180},
				{title: "日志级别", field: "LOG_LEVEL",width: 80},
				{title: "日志内容", field: "CONTENT",width: 200},
				{title: "记录编码",field: "REC_ID",width:80},
				{title: "创建时间",field: "REC_CRT_TS",width:200},
				{title: "最后操作人",field: "REC_UPD_USR_ID",width:180}
			]
		});	 
  });
  
  </script>
</head>
<body class="easyui-layout list_body">
<form id="procLogForm" name="procLogForm" >
	<div class="list_body_north" data-options="region:'north'" border="false">
	 	<!-- 查询表单 -->
	 	<div  class="datagrid-toolbar" border="false"  >
				<span>过程名称:</span>
				<input id="proc_name" type="text" name="proc_name"  class="easyui-textbox"  >
				<span>函数名称:</span>
				<input id="fn_name" type="text" name="fn_name" data-options="showSeconds:true"  class="easyui-textbox"  >	
				<span>日志标题:</span>
				<input id="title" type="text" name="title"  class="easyui-textbox"  >
				<span>日志级别:</span>
				<select class="easyui-combobox" id="log_level" data-options="editable:false" style="width:80px;height: 22px;">
				<option value="">--请选择--</option>
	    		<option value="INFO">INFO</option>
	    		<option value="ERROR">ERROR</option>
	    		<option value="DEBUG">DEBUG</option>
	    		</select>
	    		<br/>
				<span>日志内容:</span>
				<input id="content" type="text" name="content"  class="easyui-textbox"  >
				<span>最后操作人:</span>
				<input id="rec_upd_usr_id" type="text" name="rec_upd_usr_id"  class="easyui-textbox"  >
			 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a>
			 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>
		</div>
	</div>
	<div data-options="region:'center'" border="false" class="list_body_center">
		<!-- 表格 -->
	    <table id="procLogTableId" fit="true"></table>
    </div>
</form> 
</body>
</html>